/**
 * 权限API
 */
import request from '/@/utils/request';
import { Permission } from '/@/models';

export function readAllPermission(params?: any): Promise<{ code: string; data: Permission[] }> {
  return request({
    url: 'permissions',
    method: 'get',
    params,
  });
}
